home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / wsc4c21.zip / XYDRIVER.H < prev   
Text File  |  1997-05-22  |  2KB  |  60 lines

  1. /* xydriver.h */
  2.  
  3. NoMangle int DLLEXPORT xyAbort(int);
  4. NoMangle int DLLEXPORT xyAcquire(int);
  5. NoMangle int DLLEXPORT xyDebug(int);
  6. NoMangle int DLLEXPORT xyDriver(int);
  7. NoMangle int DLLEXPORT xyGetMessage(LPSTR,int);
  8. NoMangle long DLLEXPORT xyGetParameter(int,int);
  9. NoMangle int DLLEXPORT xySetParameter(int,int,int);
  10. NoMangle int DLLEXPORT xyRelease(int);
  11. NoMangle int DLLEXPORT xyStartRx(int,LPSTR,char,int);
  12. NoMangle int DLLEXPORT xyStartTx(int,LPSTR,int,int);
  13.  
  14. /* xyDriver return codes */
  15.  
  16. #define XY_IDLE     0
  17. #define XY_RUNNING  !XY_IDLE
  18.  
  19. /* XY error values */
  20.  
  21. #define XY_NO_ERROR                 0
  22. #define XY_UNKNOWN_ERROR         -300
  23. #define XY_ALREADY_ACTIVE_ERROR  -301
  24. #define XY_CANNOT_OPEN_ERROR     -302
  25. #define XY_EMPTY_FILE_ERROR      -303
  26. #define XY_NO_STARTUP_CHAR_ERROR -304
  27. #define XY_NOT_NCG_ERROR         -305
  28. #define XY_DISK_READ_ERROR       -306
  29. #define XY_NO_EOT_ACK_ERROR      -307
  30. #define XY_INTERNAL_ERROR        -308
  31. #define XY_CANCELLED_ERROR       -309
  32. #define XY_OUT_OF_SYNC_ERROR     -310
  33. #define XY_RETRIES_ERROR         -311
  34. #define XY_BAD_PACKET_NBR_ERROR  -312
  35. #define XY_TIMED_OUT_ERROR       -313
  36. #define XY_NO_SUCH_FILE_ERROR    -314
  37. #define XY_NOT_ACTIVE_ERROR      -315
  38. #define XY_PORT_RANGE_ERROR      -316
  39. #define XY_DISK_WRITE_ERROR      -317
  40. #define XY_ABORTED_ERROR         -318
  41.  
  42. /* xyGetParameter commands */
  43.  
  44. #define XY_GET_ERROR_CODE     0
  45. #define XY_GET_ERROR_STATE    1
  46. #define XY_GET_PACKET         2
  47. #define XY_GET_STATE          3
  48. #define XY_GET_FILE_SIZE      4
  49. #define XY_GET_NBR_NAKS       5
  50. #define XY_GET_DEBUG          6
  51. #define XY_GET_LAST_GET       7
  52. #define XY_GET_LAST_PUT       8
  53. #define XY_GET_GET_COUNT      9
  54. #define XY_GET_PUT_COUNT     10
  55. #define XY_GET_DRIVER_COUNT  11
  56.  
  57. /* xySetParameter commands */
  58.  
  59. #define XY_SET_NAK_RATE      52
  60.